<template>
  <div>
    <van-field label="奖品名称" v-model="form.name"/>
    <van-field label="奖品价格" v-model="form.price"/>
    <van-field label="奖品库存" v-model="form.kc"/>
    <van-field label="奖品需要的积分" v-model="form.needjf"/>
    <van-button @click="add_jift">提交</van-button>
  </div>
</template>

<script>
import maxios from "@/http/axios";
export default {
  name: "add_jp",
  data() {
    return {
      form: {}
    }
  },
  methods:{
    add_jift(){
      maxios('/book/add_jift','post',this.form).then(res=>{
        if(res.code==200){
          alert('ok')
        }else {
          alert('no')
        }
      })
    }
  }
}
</script>

<style scoped>

</style>